package com.ruoyi.web.controller.wp;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wp.domain.IDoctorRegisterFee;
import com.ruoyi.wp.service.IDoctorRegisterFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/wp/register")
public class IDoctorRegisterFeeController {

    @Autowired
    private IDoctorRegisterFeeService registerFeeService;

    @PostMapping("/list11")
    public AjaxResult getInfo()
    {
        System.out.println(registerFeeService.findAll());
        return AjaxResult.success(registerFeeService.findAll());

    }

    /**
     * 获取药品详细信息
     */
//    @PreAuthorize("@ss.hasPermi('system:durg:query')")
    @GetMapping(value = "/{registraId}")
    public Long getInfo(@PathVariable("registraId") Long registraId)
    {
        return registerFeeService.selectById(registraId);
    }

}
